Object

ScanProgressMetrics

A collection of metrics that provide details of a scan's progress.

Fields

crawl_request_count(): Int!
The number of HTTP requests made by the scan during the crawl phase.
unique_location_count(): Int!
The number of unique URLs visited by the scan during the crawl phase.
audit_request_count(): Int!
The number of HTTP requests made by the scan during the audit phase.
audit_queue_items_waiting(): Int!
The number of audit queue items waiting to be audited.
crawl_and_audit_progress_percentage(): Int!
The current progress of the scan, expressed as a percentage.
scan_phase(): ScanPhase
The current phase of the scan.
audit_start_time(): Timestamp
The time that the audit phase of the scan began.
current_url(): String
The current URL that is being crawled or audited.

Example

Query
query GetScanProgressMetrics ($id: ID!) {
    scan(id: $id) {
        scan_metrics {
          audit_request_count
          unique_location_count
          crawl_and_audit_progress_percentage
          scan_phase
          audit_start_time
          current_url
        }
    }
}
Variables
{
  "id": "4"
}
Result
{
  "data": {
    "scan": {
      "scan_metrics": {
        "crawl_request_count": 0,
        "audit_request_count": 0,
        "unique_location_count": 0,
        "crawl_and_audit_progress_percentage": 0,
        "scan_phase": "crawling",
        "audit_start_time": null,
        "current_url": null
      }
    }
  }
}